package sg.edu.nus.iss.vmcs.store;

/*
 * Copyright 2011 ISS.
 * The contents contained in this document may not be reproduced in any
 * form or by any means, without the written permission of ISS, other
 * than for the purpose for which it has been supplied.
 *
 */

/**
 * This entity object stores the name of the drink brand and it's price. 
 * There can be as many drink brands as desired, for a particular 
 * configuration. 
 * @version 1.0  07/12/2011
 * @author Team 7S - SE19
 */
public class DrinksBrand extends StoreObject {

	private int price;

/**
 * This constructor creates an instance of the object that stores the
 * brand of a particular drinks (for example, Coca-Cola, 7-up, or 
 * 100-plus. 
 */
	public DrinksBrand() {
	}

/**
 * Constructs a new DrinksBrand object that has a specified name and 
 * price. For instance, a drink of Coca-Cola brand with a price of $1
 * will be initialized when the name Coca-Cola, price 1 is passed to 
 * this constructor.
 * @param name the string name that describes the brand of a particular 
 * drink.
 * @param price the integer value of the price of the drink.
 * 
 */
	public DrinksBrand(String name, int price) {
		this.price = price;
		this.name = name;
	}

/**
 * Sets the price of a particular drinks brand.
 * @param p the integer value of the price of the drink.
 */
	public void setPrice(int p) {
		price = p;
	}

/**
 * Gets the price of a particular drinks brand.
 * @return returns the integer value of a particular drinks brand.
 */
	public int getPrice() {
		return (price);
	}

}
